<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ble_conn_params_init_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('structble__conn__params__init__t.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">ble_conn_params_init_t Struct Reference<div class="ingroups"><a class="el" href="group__ble__sdk__lib__conn__params.html">Connection Parameters Negotiation</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ble_conn_params_init_t" -->
<p>Connection Parameters Module init structure. This contains all options and data needed for initialization of the connection parameters negotiation module.  
 <a href="structble__conn__params__init__t.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structble__gap__conn__params__t.html">ble_gap_conn_params_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#ab211e40857ee8019c8fd5eabfcc12ce7">p_conn_params</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#a915702f42f9a0316745403644d385f22">first_conn_params_update_delay</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#a9bcd0621fbb5f4554f1fafd0b15dc61b">next_conn_params_update_delay</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#ab3c0944561623d4a8da622b18867aafb">max_conn_params_update_count</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#a6f0b0ef22161b61ba5cc0a7fd3ddedd9">start_on_notify_cccd_handle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#a7a3f3aac03305ef8012ade05399b5449">disconnect_on_fail</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ble__sdk__lib__conn__params.html#ga252f638d4581b34315217e41606cbb64">ble_conn_params_evt_handler_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#af6344191be6d1f66ec79d6086def25f1">evt_handler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ble__sdk__srv__common.html#gac10076d39c0ddcfe333252fe8810a1f1">ble_srv_error_handler_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structble__conn__params__init__t.html#a893a7b5845beb42d9e5b650fd012f7f1">error_handler</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Connection Parameters Module init structure. This contains all options and data needed for initialization of the connection parameters negotiation module. </p>
</div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="ab211e40857ee8019c8fd5eabfcc12ce7"></a><!-- doxytag: member="ble_conn_params_init_t::p_conn_params" ref="ab211e40857ee8019c8fd5eabfcc12ce7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structble__gap__conn__params__t.html">ble_gap_conn_params_t</a>* <a class="el" href="structble__conn__params__init__t.html#ab211e40857ee8019c8fd5eabfcc12ce7">p_conn_params</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Pointer to the connection parameters desired by the application. When calling ble_conn_params_init, if this parameter is set to NULL, the connection parameters will be fetched from host. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00048">48</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="a915702f42f9a0316745403644d385f22"></a><!-- doxytag: member="ble_conn_params_init_t::first_conn_params_update_delay" ref="a915702f42f9a0316745403644d385f22" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="structble__conn__params__init__t.html#a915702f42f9a0316745403644d385f22">first_conn_params_update_delay</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Time from initiating event (connect or start of notification) to first time ble_gap_conn_param_update is called. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00049">49</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9bcd0621fbb5f4554f1fafd0b15dc61b"></a><!-- doxytag: member="ble_conn_params_init_t::next_conn_params_update_delay" ref="a9bcd0621fbb5f4554f1fafd0b15dc61b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="structble__conn__params__init__t.html#a9bcd0621fbb5f4554f1fafd0b15dc61b">next_conn_params_update_delay</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Time between each call to ble_gap_conn_param_update after the first. Recommended value 30 seconds as per BLUETOOTH SPECIFICATION Version 4.0. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00050">50</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab3c0944561623d4a8da622b18867aafb"></a><!-- doxytag: member="ble_conn_params_init_t::max_conn_params_update_count" ref="ab3c0944561623d4a8da622b18867aafb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="structble__conn__params__init__t.html#ab3c0944561623d4a8da622b18867aafb">max_conn_params_update_count</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Number of attempts before giving up the negotiation. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00051">51</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6f0b0ef22161b61ba5cc0a7fd3ddedd9"></a><!-- doxytag: member="ble_conn_params_init_t::start_on_notify_cccd_handle" ref="a6f0b0ef22161b61ba5cc0a7fd3ddedd9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="structble__conn__params__init__t.html#a6f0b0ef22161b61ba5cc0a7fd3ddedd9">start_on_notify_cccd_handle</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>If procedure is to be started when notification is started, set this to the handle of the corresponding CCCD. Set to BLE_GATTS_HANDLE_INVALID if procedure is to be started on connect event. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00052">52</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7a3f3aac03305ef8012ade05399b5449"></a><!-- doxytag: member="ble_conn_params_init_t::disconnect_on_fail" ref="a7a3f3aac03305ef8012ade05399b5449" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structble__conn__params__init__t.html#a7a3f3aac03305ef8012ade05399b5449">disconnect_on_fail</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set to TRUE if a failed connection parameters update shall cause an automatic disconnection, set to FALSE otherwise. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00053">53</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="af6344191be6d1f66ec79d6086def25f1"></a><!-- doxytag: member="ble_conn_params_init_t::evt_handler" ref="af6344191be6d1f66ec79d6086def25f1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ble__sdk__lib__conn__params.html#ga252f638d4581b34315217e41606cbb64">ble_conn_params_evt_handler_t</a> <a class="el" href="structble__conn__params__init__t.html#af6344191be6d1f66ec79d6086def25f1">evt_handler</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Event handler to be called for handling events in the Battery Service. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00054">54</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<a class="anchor" id="a893a7b5845beb42d9e5b650fd012f7f1"></a><!-- doxytag: member="ble_conn_params_init_t::error_handler" ref="a893a7b5845beb42d9e5b650fd012f7f1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ble__sdk__srv__common.html#gac10076d39c0ddcfe333252fe8810a1f1">ble_srv_error_handler_t</a> <a class="el" href="structble__conn__params__init__t.html#a893a7b5845beb42d9e5b650fd012f7f1">error_handler</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Function to be called in case of an error. </p>

<p>Definition at line <a class="el" href="ble__conn__params_8h_source.html#l00055">55</a> of file <a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>S110_nRF51822/Include/ble/<a class="el" href="ble__conn__params_8h_source.html">ble_conn_params.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="structble__conn__params__init__t.html">ble_conn_params_init_t</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
